// author bxj
layui.use('laydate', function(){   //时间选择器
    var laydate = layui.laydate;
    //执行一个laydate实例
    laydate.render({
    elem: '#test1'
});
    laydate.render(
{
    elem: '#test2'
}
    )
});
$(document).ready(function () { //ajax读取json选项值
    $.ajax(
        {
            type: "GET",
            //url: "../../json/SelectAjaxTest.json",
            url:"http://8.129.77.225:10086/pc/project/selectProject",
            dataType: "JSON",
            data: {
                "currentPage":1,
                "pageSize":10
            },
            success: function (data) {
                var a=data
                console.log(a)
                $('#text01').empty();
                $.each(data,function (data,n){
                    $('#text01').append("<option >"+n.value+"</option>")})
            }
        }
    );
    $("#text01").change(function (){ // 或许下拉框的值
        var x = $("#text01").val();
        //console.log(x);
    });
})
function jump(){ //跳转页面传递参数
    var x = $("#text01").val();
    var url = "problem2.html?id="+x;//此处拼接内容
    location.href=url
}